package org.punkgrok.flightrecorder.examples;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by IntelliJ IDEA.
 * User: rfzabick
 * Date: May 21, 2009
 * Time: 10:18:39 PM
 */
public class ExceptionAction extends Action {
	public ExceptionAction() {
		System.out.println("in the constructor");
	}

    @Override
    public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception {
        String foo = null;
        foo.toString();
        return actionMapping.findForward("success");
    }
}
